<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
  <title>Thrive Mobile Application</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
 
	 <!--- Some jquery stuff --->
	<link rel="stylesheet" href="../../scripts/jquery.mobile-1.0.1/jquery.mobile-1.1.0-rc.1.min.css" type="text/css" />
    <link rel="stylesheet" href="../../scripts/jquery.mobile-1.0.1/thrive-theme.css" type="text/css">
    <script src="../../scripts/jquery.mobile-1.0.1/jquery-1.6.4.min.js" type="text/javascript"></script>
    <script src="../../scripts/Thrive.js"  type="text/javascript"></script>
    <script src="../AccountControl/AccountControl.js" type="text/javascript"></script>
    <script src="../Feel/Feel.js" type="text/javascript"></script>
    <script src="../Breathe/Breathe.js" type="text/javascript"></script>
    <script src="Shine.js" type="text/javascript"></script>
    <script src="../../scripts/jquery.mobile-1.0.1/jquery.mobile-1.1.0-rc.1.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../../css/style.css" type="text/css" />
    
</head>

<body>

	<div id="shine_question" data-role="page" data-theme="a">
    
    <script type="text/javascript">
		$('#shine_question').bind('pagebeforeshow', function() {
			fillQuestion();
		});
		
		$(".popup_container").live('click', function() {
			removePopup();
		});
		
		$(".popup_container").live('tap', function() {
			removePopup();
		});
		
		$(".popup_container").bind('touchstart', function()  {
			removePopup();
		});
		
		$("#submit_shine").live('click', function() {
			sendShine();
		});
	</script>
    
    <div class="popup_container" style="display:none;">
        <div class="popup"></div>
    </div>
    
    <div data-role="header" data-theme="a">
    	<a href="shine.html" data-role="button" data-icon="arrow-l">Shine</a>
        <h1 id="question_title"></h1>
    </div>
    
    <div data-role="content" data-theme="a">
    
        <form id="shine_form" selected="true">
            <fieldset>
                <div id="question_description" class="row"><p></p></div>
            
            	<input type="hidden" id="question_id" name="question" value="" />
                <div class="row">
                    <textarea id="shine_text" name="answer" rows="10" maxlength="600"></textarea>
                </div>
            </fieldset>
        <a id="submit_shine" type="submit" data-role="button">Submit</a>
        </form>
    
    </div>
    
    </div>
</body>

</html>
